<?php
/*
 *  Auteur: DikkeHein <Clemens Wijnekus>
 */
echo form_open('kampjaar/gebruiker_koppelen');
?>


<?php if (validation_errors()) : ?>
    <h3>Whoops! There was an error:</h3>
    <p><?php echo validation_errors(); ?></p>
<?php endif; ?>

<table border="0">
    <tr>
        <td>ID</td>
        <td>First Name</td>
        <td>Last Name</td>
        <td>Email</td>
        <td>Actie</td>
    </tr>
    <?php foreach ($gebruikers->result() as $row) : ?>

        <tr>
            <td><?php echo $row->id; ?></td>
            <td><?php echo $row->voornaam; ?></td>
            <td><?php echo $row->achternaam; ?></td>
            <td><?php echo $row->email; ?></td>
            <td><?php echo form_checkbox('gebruiker[]', $row->id, FALSE); ?></td>
            <?php echo form_hidden('id', $row->id); ?>
        </tr>
        <?php ?>
    <?php endforeach; ?>
    <?php echo form_hidden('jaar', $jaar); ?>
    
</table>
 <?php echo form_submit('submit', 'Toevoegen!');?> Or <?php echo anchor('kampjaar', 'Cancel'); ?>
